﻿@model EasyHome.Models.TablaAdicional
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">Editar - Adicional</h4>
</div>

@using (Html.BeginForm("Edit", "TablaAdicional", FormMethod.Post, new { @class = "modal-form" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    <div class="form-horizontal">
        <div class="modal-body">
            <div class="form-group">
                @Html.LabelFor(model => model.TablaDatoId, new { @class = "control-label col-md-3" })
                <div class="col-md-8">
                    @Html.DropDownList("TablaDatoId", null, new { @class = "form-control", @disabled = "disabled" })
                    @Html.Hidden("TablaDatoId", (Guid)ViewBag.TablaDatoId.SelectedValue)
                    @Html.ValidationMessageFor(model => model.TablaDatoId)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Descripcion, new { @class = "control-label col-md-3" })
                <div class="col-md-8">
                    @Html.TextBoxFor(model => model.Descripcion, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Descripcion)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.Numero, new { @class = "control-label col-md-3" })
                <div class="col-md-8">
                    @Html.TextBoxFor(model => model.Numero, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Numero)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.AdicionalString, new { @class = "control-label col-md-3" })
                <div class="col-md-8">
                    @Html.TextBoxFor(model => model.AdicionalString, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.AdicionalString)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.AdicionalDecimal, new { @class = "control-label col-md-3" })
                <div class="col-md-8">
                    @Html.TextBoxFor(model => model.AdicionalDecimal, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.AdicionalDecimal)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.AdicionalBoolean, new { @class = "control-label col-md-3" })
                <div class="col-md-8">
                    @Html.DropDownListFor(model => model.AdicionalBoolean, new[] { new SelectListItem { Text = "True", Value = "true" }, new SelectListItem { Text = "False", Value = "False" }, new SelectListItem { Text = "", Value = null } }, new { @class = "form-control" })

                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.AdicionalDate, new { @class = "control-label col-md-3" })
                <div class="col-md-8">
                    @Html.TextBoxFor(model => model.AdicionalDate, new { @class = "form-control datepicker", @data_provide = "datepicker", @data_date_format = "dd/mm/yyyy" })
                    @Html.ValidationMessageFor(model => model.AdicionalDate)
                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" type="submit">Save</button>
        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
    </div>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")

    <script type="text/javascript">

    </script>
}
